package com.hgts.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 凡哥哥
 * @since 2023-04-27
 */
@Getter
@Setter
  @TableName("sys_book")
@ApiModel(value = "Book对象", description = "")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("图书名称")
      private String name;

      @ApiModelProperty("图书作者")
      private String author;

      @ApiModelProperty("图书价格")
      private BigDecimal price;

      @ApiModelProperty("图书类型id")
      private Integer typeId;

      @ApiModelProperty("图书详情")
      private String description;

      @ApiModelProperty("0 未借出 1 已借出")
      private Integer status;
      @ApiModelProperty("图书类型")
      private String type;

      @ApiModelProperty("0 未删除 1 已删除")
      private int isDelete;

      @ApiModelProperty("库存 默认10")
      private int stock;

      private String image;

      private int isHot;


  @Override
  public String toString() {
    return "Book{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", author='" + author + '\'' +
            ", price=" + price +
            ", typeId=" + typeId +
            ", description='" + description + '\'' +
            ", status=" + status +
            ", type='" + type + '\'' +
            ", isDelete=" + isDelete +
            ", stock=" + stock +
            ", image='" + image + '\'' +
            ", isHot=" + isHot +
            '}';
  }
}
